/**
 * Qiangungun.com Inc.
 * Copyright (c) 2015-2015 All Rights Reserved.
 */
package com.qiangungun.report.common.model.exceptions;

import com.qiangungun.core.enums.BizCode;

/**
 * 
 * @author hangdahong
 * @version $Id: RptServiceException.java, v 0.1 2015年3月3日 下午8:32:56 hangdahong Exp $
 */
public class RptServiceException extends Exception{
    
    /**  */
    private static final long serialVersionUID = -7469218128314755584L;
    
    private BizCode bizCode;
    
    public RptServiceException(){
        super();
    }

    public RptServiceException(String msg){
        super(msg);
    }
    
    public RptServiceException(BizCode bizCode){
        super(bizCode.desc());
        this.bizCode=bizCode;
    }
    
    public RptServiceException(BizCode bizCode,String msg){
        super(msg);
        this.bizCode=bizCode;
    }
    
    /**
     * Getter method for property <tt>bizCode</tt>.
     * 
     * @return property value of bizCode
     */
    public BizCode getBizCode() {
        return bizCode;
    }

    /**
     * Setter method for property <tt>bizCode</tt>.
     * 
     * @param bizCode value to be assigned to property bizCode
     */
    public void setBizCode(BizCode bizCode) {
        this.bizCode = bizCode;
    }
    
    
    

}
